﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PendientePagoPanel.ascx.cs" 
Inherits="UILGestion.VentaAdmin.PendientePagoPanel" %>


     <%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>
<style type="text/css">
    .style1
    {
        text-align: right;
    }
</style>
<script src="../../Scripts/controlGrid.js" type="text/javascript"></script>

 <script type="text/javascript">
     function SelectAll(frm, id) {

         var frm = document.getElementById("itemPlaceHolderContainer");
         for (i = 1; i < frm.rows.length; i++) {
             var checkbox = frm.rows[i].cells[0].childNodes[0];
             if (checkbox != null)
                 checkbox.checked = document.getElementById(id).checked;
         }
     };
    </script>
     
             
    
  <table>
<tr>
<td>
<asp:DataPager ID="pager" PagedControlID="ListView1" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />
    </Fields>
</asp:DataPager>
</td>
<td>
    <asp:LinkButton ID="actualiza" runat="server" OnClick="update" Text="Actualizar"  ForeColor="Blue"/>
</td>
</tr>
</table>




<asp:ListView ID="ListView1" runat="server" OnDataBound="ListView1_DataBound"   ClientIDMode="Static"  
    DataKeyNames="idInternal" onitemdatabound="ListView1_ItemDataBound" 
                         >
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server">
            <tr id="Tr1" runat="server"  class="Heading secTitle AreaHeading ms-crm-List-Header">
         
                <th id="Th1" runat="server">
                    <asp:LinkButton ID="lb2" CommandName="Sort" CommandArgument="UIStr" runat="server" ForeColor="Blue">UI</asp:LinkButton>
                </th>
                <th id="Th4" runat="server">
                    <asp:LinkButton ID="LinkButton2" CommandName="Sort" CommandArgument="etapa" runat="server" ForeColor="Blue">ETAPA</asp:LinkButton>
                </th>
                <th id="Th7" runat="server">
                    <asp:LinkButton ID="LinkButton5" CommandName="Sort" CommandArgument="localizacion"  runat="server" ForeColor="Blue">LOCALIZACION</asp:LinkButton>
                </th>
                <th id="Th3" runat="server">
                    <asp:LinkButton ID="lb3" CommandName="Sort" CommandArgument="cliente" runat="server" ForeColor="Blue">CLIENTE</asp:LinkButton>
                </th>
                 
                <th id="Th2" runat="server">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" CommandArgument="totalStr" runat="server" ForeColor="Blue">TOTAL</asp:LinkButton>
                </th>
                <th id="Th5" runat="server">
                    <asp:LinkButton ID="LinkButton3" CommandName="Sort" CommandArgument="fechaVencimiento" runat="server" ForeColor="Blue">FECHA VENCIMIENTO</asp:LinkButton>
                </th>
               
                
            </tr>
            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>



    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#eee":"#fff" %>'>
            
            <td width="100px" >
                <asp:Hyperlink runat= "server"  ForeColor="Blue"
                 Text='<%# DataBinder.Eval(Container.DataItem,"UIStr").ToString()%>'  
                 Target="_self"  ID="OrdenCompra"
                 NavigateUrl='<%# "~/VentaAdmin/RendicionVenta/RendicionVentaEditForm.aspx?type=A&idOrdenVentaFormato=" + DataBinder.Eval (Container.DataItem,"idInternal").ToString() + 
                 "&idProyecto=" + DataBinder.Eval(Container.DataItem,"idProyecto").ToString()%>' />   
           </td>
           <td width="100px" >
                    <%# Eval("etapa")%> <br />
            </td>
            <td width="150px" >
                    <%# Eval("localizacion")%> <br />
            </td>
            <td width="250px">
             <%# Eval("cliente")%> <br />
           
            </td>
           
          
           
           
            <td width="120px" align="right">
                   <%# Eval("totalStr")%> <br />
             </td>
              <td width="80px">
             <%# Eval("fechaVencimientoStr")%> <br />
           
            </td>
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" style="">
            <tr>
                <td>
                    <h2 style="font-size: x-small; color: #960818">
                        No existe Información.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>


